<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/goods/additemsite" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>商品接口编辑</h1>
    </div>
    <div class="form">
      <form method="POST" action="{:URL('admin/Goods/doAddItemSite')}" id="J_form" name="detail_form" enctype="multipart/form-data">
        <input type="hidden" name="id" value="{$itemsite['id']}">
        <dl class="kv" id="dl_link_text">
          <dt>
                                        接口名称：
          </dt>
          <dd>
            <input name="name" id="text" type="text" value="{$itemsite['name']}" class="input-text" required style="width:200px">
            <span class="required">*</span>
            <div class="kv-error"></div>
          </dd>
           </dl>
         <dl class="kv" id="dl_link_text">
          <dt>
                                       接口标识：
          </dt>
          <dd>
            <input name="code" id="code" type="text" value="{$itemsite['name']}" class="input-text" required style="width:200px">
            <span class="required">*</span>
            <div class="kv-error"></div>
          </dd>
           </dl>
          <dl class="kv" id="dl_link_text">
          <dt>
                                       域名限制：
          </dt>
          <dd>
            <input name="domain" id="text" type="text" value="{$itemsite['domain']}" class="input-text" required style="width:200px">
            <span class="required">*</span>
            <div class="kv-error"></div>
          </dd>
        </dl>
          <dl class="kv" id="dl_link_text">
          <dt>
                                        网站链接：
          </dt>
          <dd>
            <input name="url" id="text" type="text" value="{$itemsite['url']}" class="input-text" required style="width:200px">
            <span class="required">*</span>
            <div class="kv-error"></div>
          </dd>
        </dl>
          <dl class="kv" id="dl_link_text">
          <dt>
                                        网站描述：
          </dt>
          <dd>
            <input name="desc" id="desc" type="text" value="{$itemsite['desc']}" class="input-text" required style="width:200px">
            <span class="required">*</span>
            <div class="kv-error"></div>
          </dd>
        </dl>
          <dl class="kv" id="dl_link_text">
          <dt>
            App Key ：
          </dt>
          <dd>
            <input name="appkey" id="appkey" type="text" value="{$itemsite['appkey']}" class="input-text" required style="width:200px">
            <span class="required">*</span>
            <div class="kv-error"></div>
          </dd>
        </dl>
          <dl class="kv" id="dl_link_text">
          <dt>
             App Secret ：
          </dt>
          <dd>
            <input name="secret" id="secret" type="text" value="{$itemsite['secret']}" class="input-text" required style="width:200px">
            <span class="required">*</span>
            <div class="kv-error"></div>
          </dd>
        </dl>
        <dl class="kv" id="dl_link_text">
         <dt>
            <label>是否开启商品接口：</label>
          </dt>
          <dd>
            <label>
              <input name="status" type="radio" value="1" <eq name="itemsite.status" value="1">checked</eq>
              >是</label>
            <label>
              <input name="status" type="radio" value="0" <eq name="itemsite.status" value="0">checked</eq>
              >否</label>
          </dd>
        </dl>
        
        <div class="actions">
          <input type="submit" class="btn btn-y" value="保存">
          <input type="button" class="btn btn-n" value="返回" onclick="javascript:location.href='{:URL('admin/Goods/itemSite')}'">
        </div>
      </form>
    </div>
  </div>
</body>

</html>